package com.zte.claa.inficombo.csa.app.service.photo.bean;

/*
 * Author by 0283000106 
 */
public class PhotoFragPacket {
	// 0x82，标识切片帧；
    private int MessageID;
    // INT16，本切片的帧序列号，0标识首帧，FragNum - 1 标识尾帧；
    private int PSeq;
    /* INT8，本切片的帧长度，也就是Content字节数，除尾帧外，其他帧长应该为最大值N；
     * N在不同SF下最大值不同；SF5～8为238，SF9为111，SF10～12为47；
     */
    private int PLength = 0;
    // 具体切片内容；
    private byte[] Content = null;
    
	public int getMessageID() {
		return MessageID;
	}
	public void setMessageID(int messageID) {
		MessageID = messageID;
	}
	public int getPSeq() {
		return PSeq;
	}
	public void setPSeq(int pSeq) {
		PSeq = pSeq;
	}
	public int getPLength() {
		return PLength;
	}
	public void setPLength(int pLength) {
		PLength = pLength;
	}
	public byte[] getContent() {
		if(null == Content && PLength != 0){
			this.Content = new byte[PLength];
		}
		return Content;
	}
	public void setContent(byte[] content) {
		Content = content;
	}
}
